home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / IFF / IFF_Forms / ILBM.DPPV.doc < prev    next >
Encoding:
Text File  |  1993-03-01  |  1.8 KB  |  61 lines

  1. DPaint perspective chunk (EA)
  2.  
  3. IFF FORM / CHUNK DESCRIPTION
  4. ============================
  5.  
  6. Form/Chunk ID:   Chunk DPPV  (DPaint II ILBM perspective chunk)
  7. Date Submitted:  12/86
  8. Submitted by:    Dan Silva 
  9.  
  10. Chunk Description:
  11.  
  12.    The DPPV chunk describes the perspective state in a DPaintII ILBM.
  13.  
  14. Chunk Spec:
  15.  
  16. /* The chunk identifier DPPV */
  17. #define ID_DPPV    MakeID('D','P','P','V')
  18.  
  19. typedef LONG LongFrac;
  20. typedef struct ( LongFrac x,y,z; )  LFPoint;
  21. typedef LongFrac  APoint[3];
  22.  
  23. typedef union {
  24.    LFPoint l;
  25.    APoint  a;
  26.    } UPoint;
  27.  
  28. /* values taken by variable rotType */
  29. #define ROT_EULER  0
  30. #define ROT_INCR   1
  31.  
  32. /* Disk record describing Perspective state */
  33.  
  34. typedef struct {
  35.    WORD     rotType;           /* rotation type */
  36.    WORD     iA, iB, iC;        /* rotation angles (in degrees) */
  37.    LongFrac Depth;             /* perspective depth */
  38.    WORD     uCenter, vCenter;  /* coords of center perspective,
  39.                                 * relative to backing bitmap,
  40.                                 * in Virtual coords
  41.                                 */
  42.    WORD     fixCoord;          /* which coordinate is fixed */
  43.    WORD     angleStep;         /* large angle stepping amount */
  44.    UPoint   grid;              /* gridding spacing in X,Y,Z */
  45.    UPoint   gridReset;         /* where the grid goes on Reset */
  46.    UPoint   gridBrCenter;      /* Brush center when grid was last on,
  47.                                 * as reference point
  48.                                 */
  49.    UPoint   permBrCenter;      /* Brush center the last time the mouse
  50.                                 * button was clicked, a rotation performed,
  51.                                 * or motion along "fixed" axis
  52.                                 */
  53.    LongFrac rot[3][3];         /* rotation matrix */
  54.    } PerspState;
  55.  
  56. SUPPORTING SOFTWARE
  57. ===================
  58. DPaint II   by Dan Silva for Electronic Arts
  59.  
  60.  
  61.